STEP 4: Let's generate our random kick.

Remember, the random.randint() command generates a number between a specified range.

  • In LOGIC, go to and drag in Random Integer indented INSIDE your loop.
  • Change the first integer argument from 1 to -250 and the second integer argument from 10 to 0.
  • Change the variable name from my_var to random_height.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)